/**
 * Created by Seven on 2020/5/19.
 */
;
var helper = require("../../javascript/helper");
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    var prices = ["1.50","2.00","3.00","4.00","5.00"];
    plan = {
        "year": ["0-75"],
        "days": ["1d", "3d", "5d","7d", "10d"],
        "people_count": ["1"],
        "accident_death": ["100000"],
        "accident_medical": ["10000"],
        "burial_fee": ["10000"]
    };
    data = helper.product([plan["year"],plan["days"],plan["people_count"],plan["accident_death"],plan["accident_medical"],plan["burial_fee"]])
    for(i=0;i<data.length;i++){
        df = helper.formatProductInfo(data[i],plan)
        df.name = "畅游神州-参团游A版";
        df.company = "阳光保险集团";
        df.price = prices[i];
        mysql.insertData( df );

    }

}
